import {
    AUDITAPPLYURL,
    COMPLAINTSUGGEST_DETAIL,
    COMPLAINTSUGGEST_REPLY,
    QUERYSTATISTICS,
    SUBJECTINFOENTERPRISE_DETAIL, SUBJECTINFOEXPERT_DETAIL, SUBJECTENTERPRISEUPDATEINFO_DETAIL
} from './api'
import {METHOD, request} from '@/utils/request'



export async function queryList(params) {
    return request(AUDITAPPLYURL, METHOD.GET, params)
}

export async function getComplaintSuggestDetail(id, params) {
    return request(COMPLAINTSUGGEST_DETAIL+ id, METHOD.GET, params)
}
export async function replyComplaintSuggest(id, params) {
    return request(COMPLAINTSUGGEST_REPLY+ id, METHOD.POST, params)
}

export async function queryStatistics() {
    return request(QUERYSTATISTICS, METHOD.GET)
}


export async function querySubjectInfoEnterpriseDetail(params) {
    return request(SUBJECTINFOENTERPRISE_DETAIL, METHOD.GET, params)
}

export async function querySubjectInfoExpertDetail(params) {
    return request(SUBJECTINFOEXPERT_DETAIL, METHOD.GET, params)
}
export async function querySubjectEnterpriseUpdateInfo(params) {
    return request(SUBJECTENTERPRISEUPDATEINFO_DETAIL, METHOD.GET, params)
}
export default {queryList, getComplaintSuggestDetail, replyComplaintSuggest, queryStatistics, querySubjectInfoEnterpriseDetail, querySubjectInfoExpertDetail, querySubjectEnterpriseUpdateInfo}
